import {http} from "@/service/http";
import {Role} from '@/types/user'
import {NacosInfo} from "@/types/system";

const prefix = '/AgileConfig'


/**
 * 系统实例是否启动完成
 * @returns UserInfo
 */
export const createUserRoleByRoleName = () => {
  return http<Role>({
    method: 'Get',
    url: `${prefix}/CheckSystemStartFinish`,
  })
}


/**
 * 系统实例是否启动完成
 * @returns UserInfo
 */
export const getNacosInfo = () => {
  return http<NacosInfo>({
    method: 'Get',
    url: `${prefix}/GetStatus`,
  })
}
